package cn.jbit.biz.impl;

import java.util.List;

import cn.jbit.biz.UserBiz;
import cn.jbit.dao.UserDao;
import cn.jbit.dao.impl.UserDaoImpl;
import cn.jbit.entity.User;
import cn.jbit.util.Page;

public class UserBizImpl implements UserBiz{
	UserDao userDao=new UserDaoImpl();
	@Override
	public User login(String uname, String upwd) {
		return userDao.findUser(uname, upwd);
	}

	@Override
	public int getUserListCount() {
		
		return userDao.getUserListCount();
	}

	@Override
	public List<User> getUserList(Page page) {
		List<User> list=userDao.getUserList(page);
		return list;
	}

}